package com.xing.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xing.entity.SysRoleMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysRoleMenuDao extends BaseMapper<SysRoleMenuEntity> {


    @Select("select resource_id from sys_role_resource where role_id = #{roleId}")
    List<Long> getMenuIdByRoleId(@Param("roleId") Long roleId);
}
